{include file="stddecor.form.open.tpl" }
<table cellspacing="0" class="objHeader">
<tr>
    <td class="objHeader-td-icon"><img src="{$SPIcfg.dir.pubsite_styles|escape}manage/image/topic_icons/{$data.topic|escape}_{$data.tmode|escape}.gif" /></td>
    <td class="objHeader-td-header">
        <div>
            <h1>{$data.title|escape}</h1>
            <h2>{$data.subtitle|escape}</h2>
        </div>

        <div class="objHeader-action_buttons">
            <div class="right">{include file="obj.button.tpl" name="Назад" link=$data.link_back icon="back" }</div>
            <br class="clear" />
        </div>
    </td>
</tr>
</table>
{include file="stddecor.form.close.tpl" }

{* ************************************************************************* *}

{if $content.media }
    {include file="media/manager.tpl" item_title="Главное изображение %s" media=$content.media }
{/if}

{* ************************************************************************* *}

{include file="stddecor.form.open.tpl" }

<form id="cntForm" name="cntForm" method="post" action="{$data.link_form_submit|escape}">
{foreach from=$data.formvars key=varname item=varvalue }
<input type="hidden" name="{$varname|escape}" value="{$varvalue|escape}" />
{/foreach}

<center>
<table cellspacing="8" class="cntForm">

<tr>
    <td class="cntForm-td-title"><div>Название:</div></td>
    <td class="cntForm-td-object">
        <input type="text" class="text" name="field[name]" value="{$content.item_fields.name|escape}" maxlength="64" />
    </td>
    <td class="cntForm-td-error buggy_obj buggy_obj__name"></td>
</tr>

<tr>
    <td class="cntForm-td-title"><div>Короткое описание:</div></td>
    <td class="cntForm-td-object">
        <textarea cols="60" rows="4" class="textarea" name="field[anons]">{$content.item_fields.anons|escape}</textarea>
    </td>
    <td class="cntForm-td-error buggy_obj buggy_obj__anons"></td>
</tr>

<tr>
    <td class="cntForm-td-title"><div>Описание:</div></td>
    <td class="cntForm-td-object" colspan="2">
        {include file="widget/spaw2.tpl" varname="field[description]" editor_varname=description_ExtEditor editor=$content.item_fields.description_ExtEditor }
    </td>
</tr>

<tr><td>&nbsp;</td></tr>

{if $data.formmode == 'insert' }
<tr>
    <td class="cntForm-td-title"><div>Позиция в списке:</div></td>
    <td class="cntForm-td-object">
        <input type="radio" name="order_position" value="first" /> в начале списка<br />
        <input type="radio" name="order_position" value="last" checked="checked" /> в конце списка
    </td>
    <td class="cntForm-td-error"></td>
</tr>
{/if}

{if $content.item_fields.t_created }
<tr>
    <td class="cntForm-td-title"><div class="light">Дата создания:</div></td>
    <td class="cntForm-td-object"><div class="light">{$content.item_fields.t_created|date}</div></td>
    <td></td>
</tr>
{/if}

{if $content.item_fields.t_updated }
<tr>
    <td class="cntForm-td-title"><div class="light">Дата модификации:</div></td>
    <td class="cntForm-td-object"><div class="light">{$content.item_fields.t_updated|date}</div></td>
    <td></td>
</tr>
{/if}

</table>

<div class="splitter padded"></div>

<table cellspacing="8" cellpadding="0">
<tr>
    <td>{include file="obj.button.tpl" name="Сохранить" onclick="cntForm_submit()" icon="save" }</td>
    <td width="25">&nbsp;</td>
    <td>{include file="obj.button.tpl" name="Отменить" link=$data.link_back icon="cancel" }</td>
</tr>
</table>

</center>

</form>
{include file="stddecor.form.close.tpl" }

{* ************************************************************************* *}
